arm: avoid memory write in switch to Hyp mode
authorTim Deegan <tim@xen.org>
Fri, 1 Jun 2012 09:20:38 +0000 (10:20 +0100)
committerTim Deegan <tim@xen.org>
Fri, 1 Jun 2012 09:20:38 +0000 (10:20 +0100)
commita5d4640b92ce673773dcdb102b4d35be6f58b129
treea50b695e8c47d3e456af1e52fbf0efbb81b1e66c
parent3d2acfa86e8bdc76fe852f918bbef16d08bc5fc3
arm: avoid memory write in switch to Hyp mode

Assemble the new CPSR in registers instead.  It's slightly cleaner,
And makes it possible to have a read-only text section.

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mode_switch.S